/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.dropdown-content{
    display: none;
}

.dropdown-content.show{
    display: block;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, #b23737f6 10%, #ba0d0d 100%);
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    margin-left: auto;
    background-color: #ff0004;
    color: rgb(255, 255, 255);
    padding: 1px 1px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    margin-right: 10px;
    gap: 10px;
}

.header-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-container img {
    filter: invert(1);
    transition: transform 0.3s ease;
}

.header-container img:hover {
    transform: scale(1.1);
}

.header-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

nav a:not(.profile-link):hover {
    color: #ffcdd2;
}

/* User Menu Styles */
.user-menu {

    gap: 1px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: default;
    margin-left: 70px;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.user-avatar {
    width: 20px;
    height: 20px;
    background-color: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000a7;
    font-size: 1.8rem;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 1px;
}

.user-dropdown i {
    color: #666;
    font-size: 0.9rem;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f3f5;
    color: #6a11cb;
}

.dropdown-content a.active {
    color: #86d0e9;
    background-color: #f0f0ff;
}

.dropdown-content .divider {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}
/* ===== HERO SECTION ===== */
.hero-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.video-container {
    width: 100%;
    max-width: 1500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.15);
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625 * 100 = 56.25%) */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}

.video-container:hover video {
    transform: scale(1.02);
}

.hero-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.8rem;
    width: 100%;
    max-width: 750px;
    box-shadow: 0 4px 20px rgba(183, 28, 28, 0.2);
    animation: pulse 2s infinite;
}

/* ===== EVENTS SECTION ===== */
.events-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #b71c1c;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #d32f2f, #ffcdd2);
    border-radius: 2px;
}

.event-details {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.event-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
}

.event-title b {
    font-size: 2rem;
    color: #d32f2f;
    background: linear-gradient(to right, #d32f2f, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-info, .event-description, .event-highlights, .eligibility-criteria {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #d32f2f;
}

.event-info h3, .event-description h3, 
.event-highlights h3, .eligibility-criteria h3 {
    color: #b71c1c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-info p, .eligibility-criteria p {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.event-info p b, .eligibility-criteria p b {
    color: #333;
    min-width: 60px;
}

.event-image {
    grid-column: 2;
    grid-row: 2 / span 3;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-image img:hover {
    transform: scale(1.03);
}

.events-link {
    text-align: center;
    margin-top: .8rem;
    padding: 3rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    border-radius: 12px;
    border: 2px dashed #d32f2f;
}

.events-link p {
    font-size: 1.1rem;
    color: #333;
}

.events-link a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    border: 2px solid #d32f2f;
}

.events-link a:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* ===== ANNOUNCEMENT SECTION ===== */
.announcement-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.announcement-content {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(183, 28, 28, 0.2);
    position: relative;
    overflow: hidden;
}

.announcement-content::before {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.announcement-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: #000000;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #ffcdd2;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d32f2f;
    border-radius: 1.5px;
}

.contact-details p {
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.contact-details a {
    color: #ffcdd2;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.contact-details a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.copyright p:first-child {
    color: #ffcdd2;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(183, 28, 28, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 30px rgba(183, 28, 28, 0.3);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .header-container h1 {
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }
    
    nav {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .event-details {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .event-image {
        grid-column: 1;
        grid-row: auto;
    }
    
    .hero-message {
        font-size: 1.4rem;
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .event-title b {
        font-size: 1.6rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .hero-section, .events-section, .announcement-section {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .header-container h1 {
        font-size: 1.1rem;
        min-width: auto;
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .user-menu {
        width: 100%;
    }
    
    .user-dropdown {
        justify-content: center;
    }
    
    .hero-message {
        font-size: 1.2rem;
    }
    
    .event-details {
        padding: 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Loading animation for images */
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Request Blood Component Styling */
.request,
.request * {
  box-sizing: border-box;
}

.request {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border-radius: 32px;
  padding: 2rem 2rem;
  max-width: 500px;
  margin: 2rem auto;
  box-shadow: 0 20px 35px -10px rgba(220, 20, 60, 0.15), 0 5px 12px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(230, 57, 70, 0.2);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.request:hover {
  box-shadow: 0 25px 40px -12px rgba(220, 20, 60, 0.25);
  transform: translateY(-2px);
}

.request p {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #2c3e4f;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Blood drop icon for thematic touch */
.request p::before {
  content: "🩸";
  font-size: 1.3rem;
  opacity: 0.8;
}

.request-link {
  display: inline-block;
  background: linear-gradient(95deg, #dc2626, #b91c1c);
  color: white;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.85rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  margin-top: 0.5rem;
}

.request-link:hover {
  background: linear-gradient(95deg, #b91c1c, #991b1b);
  transform: scale(1.02);
  box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
  text-decoration: none;
}

.request-link:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.request-link:focus-visible {
  outline: 3px solid #f97316;
  outline-offset: 2px;
  border-radius: 60px;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 640px) {
  .request {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
    max-width: none;
  }
  
  .request p {
    font-size: 1rem;
  }
  
  .request-link {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}